package com.hyxt.utils;

import com.hyxt.DTO.PlatChannels;
import com.hyxt.DTO.PlatLinks;

import java.util.Collection;
import java.util.Enumeration;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author songm
 * @version v1.0
 * @Description 存放平台链路的缓存，包括运管链路状态
 * @Date: Create in 16:33 2017/12/20
 * @Modifide By:
 **/
public class PlatLinksCache {

    //存放平台链路状态<platId,PlatLinks>
    public static ConcurrentHashMap<String,PlatLinks> platLinks = new ConcurrentHashMap<>();

    public static PlatLinks put(String key,PlatLinks value){
        return platLinks.put(key, value);
    }

    public static PlatLinks get(String key){
        return platLinks.get(key);
    }

    public static PlatLinks remove(String key){
        return platLinks.remove(key);
    }
}
